import { E_HTTP_METHODS, IURL } from '../transfer-typing'

export interface IAuthURL {
  register: IURL
  loginMobileVerifyCode: IURL
  loginThirdParty: IURL
}

export function createAuthURL(): IAuthURL {
  return {
    register: {
      url: 'courseserver/api/register',
      method: E_HTTP_METHODS.POST,
      noToken: true
    },
    loginMobileVerifyCode: {
      url: 'courseserver/api/loginMobileVerifyCode',
      method: E_HTTP_METHODS.POST,
      noToken: true
    },
    loginThirdParty: {
      url: 'courseserver/api/loginThirdParty',
      method: E_HTTP_METHODS.POST,
      noToken: true
    }
  }
}
